/**
 * 流程中心路由
 */


import Main from '@/components/main'
import parentView from '@/components/parent-view'

const processCenterRouter = {
  path: '/process-center',
  name: 'process-center',
  meta: {
    keepAlive: true,
    icon: '_liuchengzhongxin',
    title: '流程中心',
    showAlways: true,
    access: ['WorkFlowInfo']
  },
  component: Main,
  children: [
    {
      path: 'myApply',
      name: 'myApply',
      meta: {
        // keepAlive: true,
        title: '我的申请',
        access: ['WorkFlowInfo']
      },
      component: () => import('@/view/process-center/myApply/myApply.vue')
    },
    {
      path: 'myTodo',
      name: 'myTodo',
      meta: {
        // keepAlive: true,
        title: '我的待办审批',
        access: ['WorkFlowInfo']
      },
      component: () => import('@/view/process-center/myTodo/myTodo.vue')
    },
    {
      path: 'myDone',
      name: 'myDone',
      meta: {
        // keepAlive: true,
        title: '我的已办审批',
        access: ['WorkFlowInfo']
      },
      component: () => import('@/view/process-center/myDone/myDone.vue')
    }
  ]
}

export default processCenterRouter;